package day2;

/**
 * @author oldliu
 * @since 1.0
 */
public class Teacher {
    String name;//姓名
    int age;//年龄
    public Teacher(String n,int a){
        name=n;
        age=a;
    }
    public Teacher(String n){
        name=n;
    }
    //显示信息
    public void show(){
        System.out.println("姓名："+name+",年龄 "+age+"岁");
    }
}
